package com.hqyj.onlineExamination.modules.exam.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.onlineExamination.modules.common.entity.ResultEntity;
import com.hqyj.onlineExamination.modules.common.entity.SearchBean;
import com.hqyj.onlineExamination.modules.exam.entity.Question;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @author yun
 * @date 2021-5-25 14:24
 */
public interface QuestionService {

    Question selectQuestionById(int id);

    ResultEntity<Question> addQuestionByQuestion(Question question);

    ResultEntity<Question> deleteQuestionById(int id);

    ResultEntity<Question> updateQuestionByQuestion(Question question);

    PageInfo<Question> selectAllQuestionInPage(SearchBean searchBean);

    List<Question> selectAllQuestionTypeNum();

    List<Question> getTypes();

    List<Question> getQuestionsByType(String type);


}
